package com.common.interceptor;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;

public class LoginInterceptor  implements Interceptor {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void destroy() {
		
	}

	public void init() {
		
	}

	public String intercept(ActionInvocation invocation) throws Exception {
		
//		Object user = ActionContext.getContext().getSession().get("uset");
//		if(user != null){
			invocation.invoke();
			return "success";
//		}else{
//			ActionContext.getContext().put("msg", "没有登陆");
//			return "error";
//		}
		
	}

}
